package com.dp.server.entities;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.envers.Audited;

@Entity
public class Pais {
	public int id;
	private String nombre;
	private int continenteId;
	
	public int getContinenteId() {
		return continenteId;
	}
	public Pais(int id, String nombre, int continenteId) {
		super();
		this.id = id;
		this.nombre = nombre;
		this.continenteId = continenteId;
	}
	public void setContinenteId(int continenteId) {
		this.continenteId = continenteId;
	}
	public Pais(){}
	@Id
	@GeneratedValue(generator="increment")
	@GenericGenerator(name="increment", strategy = "increment")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}


	
}
